<%@page import="com.core.utils.LocalizableString"%>
<%@page import="com.entities.projectversion.actionscript.ActionScriptParserVersionOpen"%>
<%@page import="com.entities.projectversion.detail.VersionDetailController"%>
<%@page import="com.entities.projectitem.actionscript.ActionScriptParserProjectDescription"%>
<%@page import="com.core.protocols.IDetailTableViewDelegate"%>
<%@page import="com.core.ui.controller.ActionBarController"%>
<%@taglib prefix="sorokina" uri="/WEB-INF/Sorokina.tld"%>

<%
    String objectId = request.getParameter("id");

    VersionDetailController detailController = new VersionDetailController();
    detailController.setEditMode(request.getParameter("RecordStateMode"));
    detailController.setVersionId(objectId);

    ActionScriptParserVersionOpen actionScriptParser = new ActionScriptParserVersionOpen();
    actionScriptParser.setFormName("EditForm");
    actionScriptParser.setVersionId(objectId);

    ActionBarController actionBarController = new ActionBarController();
    actionBarController.setActionScriptParser(actionScriptParser);

    LocalizableString localizableString = LocalizableString.sharedInstance();
    String details = localizableString.localizable("view.description.field.details");    

    detailController.reloadData();
%>

<div class="maincontainer">
    <div class="datacontainer" id="datacountainer">

        <div class="content">
            <div class="module">
                <sorokina:ActionBarView datasource="<%=actionBarController %>" />
            </div>
        </div>
        <div class="primary_container">
            <div class="content">
                <div class="module">
                    <div class="mod-header">
                        <h3 class="toggle-title"><%=details %></h3>
                    </div>
                    <sorokina:DetailTableView delegate="<%=detailController%>" userInfo="BASE" tableClass="properties-list-two-columns" />
                </div>
            </div>
        </div>

    </div>

</div>
